package com.px.scserver.scheduled;

import com.px.scserver.service.UserTaskService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author <a href="https://j3code.cn">J3code</a>
 * @package cn.j3code.order.scheduled
 * @createTime 2023/7/22 - 17:17
 * @description
 */
@Slf4j
@Component
@AllArgsConstructor
public class TaskScheduled {

    private final UserTaskService userTaskService;

    /**
     * 任务提醒
     */
    @Scheduled(cron = "15 0/5 * * * ?")
    public void taskInform() {
        userTaskService.taskInform();
    }
}
